﻿using Application.Dto;
using Domain.Entitys;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Application.IAppSrevices
{
    public interface ICFTKService
    {
        /// <summary>
        /// 分页查询3级机构表数据
        /// </summary>
        /// <param name="fenYe"></param>
        /// <returns></returns>
        FenYe<CFTK> CFTKSelectFenYe(FenYe<CFTK> fenYe);

        /// <summary>
        /// 删除3级机构表数据
        /// </summary>
        /// <param name="cFTK"></param>
        /// <returns></returns>
        Task<int> CFTKDeleteAsync(CFTKDeleteDao cFTKDeleteDao);

        /// <summary>
        /// 添加3级机构表数据
        /// </summary>
        /// <param name="cFTK"></param>
        /// <returns></returns>
        Task<int> CFTKInsertAsync(CFTKAddDto cFTK);

        /// <summary>
        /// 按id查询对应的数据
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public Task<CFTK> CFTKSelectById(int id);

        /// <summary>
        /// 修改3级机构表数据
        /// </summary>
        /// <param name="cFTK"></param>
        /// <returns></returns>
        public Task<int> CFTKUpdateAsync(CFTK cFTK);

        /// <summary>
        /// 根据3级编号查询对应数据
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<CFTK> CFTKSelectByCftid(string id);

        /// <summary>
        /// 级联显示下拉框数据
        /// </summary>
        /// <returns></returns>
        List<Cascader> Cascaders();

        /// <summary>
        /// 查询所有数据
        /// </summary>
        /// <returns></returns>
        Task<List<CFTK>> CKTKselectAsync();

        /// <summary>
        /// 根据一级二级id查询三级
        /// </summary>
        /// <returns></returns>
        Task<List<CFTK>> CFTKSelectCFSKCFFKId(string sid,string fid);

        /// <summary>
        /// 级联显示下拉框数据2
        /// </summary>
        /// <returns></returns>
        List<Cascader> Cascaders2();
        Task<List<Cascader>> GetCFFKCFSKCFTK();
    }
}
